package com.xiaoq.shop.service.impl;

import com.xiaoq.shop.entity.TicketSellPlatformEntity;
import com.xiaoq.shop.repository.ITicketSellPlatformRepository;
import com.xiaoq.shop.service.ITicketSellPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by chenjh on 2018/7/13.
 */
@Service
public class TicketSellPlatformServiceImpl implements ITicketSellPlatformService {

    @Autowired
    private ITicketSellPlatformRepository ticketSellPlatformRepository;

    @Override
    public void save(TicketSellPlatformEntity entity) {
        ticketSellPlatformRepository.save(entity);
    }

    @Override
    public TicketSellPlatformEntity getBySitesId(String sitesId) {
        return ticketSellPlatformRepository.getBySitesId(sitesId);
    }
}
